﻿/*
 * Copyright © 2020, Wuxi Safover Intelligent Technology Co., Ltd. All rights reserved.
 * 
 * 无锡安永智能科技有限公司版权所有，未经许可，不得用于商业用途
 * 
 * Visit: https://www.safover.com/ 
 */

using System.Windows.Controls;
using System.Windows.Input;
using Safover.LidarCollector.ViewModel;

namespace Safover.LidarCollector.View
{
    /// <summary>
    /// Interaction logic for OthersConfigControl.xaml
    /// </summary>
    public partial class OthersConfigControl : UserControl
    {
        public OthersConfigControl()
        {
            InitializeComponent();

            DataContext = OthersConfigViewModel.Instance;
        }

        private void OnPreviewTextInputInt(object sender, TextCompositionEventArgs e)
        {
            e.Handled = !e.Text.IsTextInt();
        }
    }
}
